package cn.lg.soar.boot.fc.service;

import cn.lg.soar.common.model.HttpResult;
import cn.lg.soar.common.model.PageQuery;
import cn.lg.soar.common.model.PageResult;
import cn.lg.soar.database.base.service.IBaseService;
import cn.lg.soar.boot.fc.entity.Furniture;
import cn.lg.soar.database.query.QueryParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * 配套表
 * @author BoBo
 * @since 2025-01-15
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface FurnitureService extends IBaseService<Furniture> {

    /**
     * 添加配套表信息
     */
    public HttpResult<Serializable> addFurniture(Furniture furniture);

    /**
     * 修改配套表信息
     */
    public HttpResult<Serializable> updateFurniture(Furniture furniture);

    //根据id查询一条信息
    public HttpResult<Furniture> detail(Long id);

    //多功能查询
    HttpResult<PageResult<Furniture>> getFind(PageQuery pageQuery, QueryParams params, Long roomFurnitureid);

    /**
     * 拖拽排序
     */
    HttpResult<Serializable> updateSort(List<Map<String, BigInteger>> sortedData);

    /**
     *导出Excel
     */
    void exports(List<Furniture> list, HttpServletResponse resp);

    /**
     * 导入Excel
     */
    HttpResult<Void> imports(MultipartFile files);

}
